﻿using DALFactory;
using IBLL;
using IDAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public partial class UserInfoService:BaseService<UserInfo>, IUserInfoService
    {
        // 第一种
        //UserInfoDal dal  = new UserInfoDal();
        // 第二种
        //private IUserInfoDal dal = new ADONET.UserInfoDal();

        //private IUserInfoDal dal = new EFDAL.UserInfoDal();
        // 第三种
        //private IUserInfoDal dal = DalFactory.GetUserInfoDal();

        // 第四种
        //private IUserInfoDal dal;
        //private IDbSession dbSession;
        //public UserInfoService()
        //{
        //    dbSession = DbSessionFactory.GetCurrentDbSession();
        //    dal = dbSession.UserInfoDal;
        //}
        //public void Add(UserInfo user)
        //{
        //    dal.Add(user);
        //}

        // 第五种
        //public override void SetCurrentDal()
        //{
        //    CurrentDal = dbSession.UserInfoDal;
        //}
    }
}
